package org.crh.common.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScheduleMapper {

    int selectStock(@Param("slotId") Long slotId);

    List<Long> getAllIds();

    int reduceStock(@Param("slotId") Long slotId,@Param("reduceNum") int reduceNum,@Param("version")int version);
}
